package cqrtplm.entity;


import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "RT_CFG_ATTRIBUTE_CARD")
@TyOtype(
        displayName = RTTableTypeConstant.TY_MPMOPERATION_TYPE_ATTRIBUTECARD
)
@AllArgsConstructor
@NoArgsConstructor
public class RTAttributeCardDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "OID", nullable = false)
    private BigInteger oid;

    @Column(name = "DEVELOPMENT_ORDER", length = 50)
    private String developmentOrder;

    @Column(name = "PRODUCT_LINE", length = 50)
    private String productLine;

    @Column(name = "CATEGORY", length = 50)
    private String category;

    @Column(name = "ATTRIBUTE_CARD", length = 50)
    private String attributeCard;

    @Column(name = "TYPE", length = 50)
    private String type;

    @TyOtype(
            name = RTTableTypeConstant.TY_MPMOPERATION_TYPE_ATTRIBUTECARD
    )
    @Column(name = "OTYPE")
    private String otype = RTTableTypeConstant.TY_MPMOPERATION_TYPE_ATTRIBUTECARD;

    @Column(name = "PRODUCTTYPE", length = 50)
    private String  productType;

    @Column(name = "ATTRIBUTE_CARD_NAME", length = 50)
    private String attributeCardDisplayName;

    @Column(name = "PRODUCT_SERIES")
    private String productSeries;





}
